import logging
import pytest
from test_a import log_set
import test_a as f


if __name__ == '__main__':
    log_set()
    pytest.main(['test_a.py','-s','--alluredir=./data','--clean-alluredir'])
    import os
    os.system(r"allure generate ./data -o htmlreport --clean")
    f.sent_email(['./log.log',r"C:\Users\张震海\Desktop\dfs\learn\learn1\htmlreport\index.html"])

